package tech.aistar.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable , Comparable<Order>{

  private String order_id;
  private Integer user_id;
  private List<Flower> flowers;
  private List<Integer> counts;
  private String address;
  private String send_time;
  private String note;
  //状态。0已支付，1已完成，2已取消
  private Integer status;

    @Override
    public int compareTo(Order o) {
        return this.status.compareTo(o.status );
    }
}
